package com.tedu.egweibo.common.resulf;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 *  枚举类
 * 定义状态码
 */
@Getter
@AllArgsConstructor//全部参数构造器
@NoArgsConstructor//无参构造器
public enum StatusCode {
    USERNAME_ERROR(1000,"未登录"),
    PASSWORD_ERROR(1001,"密码错误"),
    USERNAME_EXIST(1002,"用户名错误"),
    NOT_LOGIN(1003,"用户名被占用"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败");


    private Integer statusCode;
    private String message;
}
